/**
 * 主场景Scene
 */
class mainScene extends Frame.Game.Scene {

    init() {
        //注册控制器
        Frame.MVC.registController(ModuleKey.background, new backgroundController(), new backgroundView());
        Frame.MVC.registController(ModuleKey.mainUI, new mainUIController(), new mainUIView());


    }
    open() {
        //添加该场景需要的显示层
        this.openLayer(Frame.Display.Layer.background);
        this.openLayer(Frame.Display.Layer.UI);

        //开启view
        this.openView(ModuleKey.mainUI, Frame.Display.Layer.UI);
        this.openView(ModuleKey.background, Frame.Display.Layer.background);
    }

}